package com.ruoyi.demo.mapper;

import com.ruoyi.demo.domain.UserRepair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRepairMapper {
    /**
     * 查询报修信息
     * @param repairId 报修ID
     * @return 报修信息
     */
    public UserRepair selectRepairByRepairId(@Param("repairId") Long repairId);

    /**
     * 查询用户报修列表
     * @param repair 用户报修信息
     * @return 报修列表
     */
    public List<UserRepair> selectRepairListByUserId(UserRepair repair);

    /**
     * 新增报修
     */
    public int insertRepair(UserRepair repair);

    /**
     * 修改报修
     */
    public int updateRepair(UserRepair repair);

    /**
     * 删除报修
     */
    public int deleteRepairByRepairId(Long repairId);

    /**
     * 批量删除报修
     */
    public int deleteRepairByRepairIds(Long[] repairIds);
} 